projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c64d50
)
ARM: uniphier: add sg_set_iectrl_range()
author
Masahiro Yamada
<
[email protected]
>
Thu, 21 Apr 2016 05:43:15 +0000
(14:43 +0900)
committer
Masahiro Yamada
<
[email protected]
>
Sun, 24 Apr 2016 00:53:57 +0000
(09:53 +0900)
For PH1-LD20 or later, per-pin input-enable control is supported,
that is, we need to set-up IECTRL registers for a group of pins.
This helper function will be useful for a bunch of register settings.
Signed-off-by: Masahiro Yamada <
[email protected]
>
arch/arm/mach-uniphier/sg-regs.h
patch
|
blob
|
history
diff --git
a/arch/arm/mach-uniphier/sg-regs.h
b/arch/arm/mach-uniphier/sg-regs.h
index 2cdc2db26efb2fa919a544d857cee3f3b507cdd2..4044245ee1854dcd390542f777cd1636d8b03178 100644
(file)
--- a/
arch/arm/mach-uniphier/sg-regs.h
+++ b/
arch/arm/mach-uniphier/sg-regs.h
@@
-126,6
+126,14
@@
static inline void sg_set_iectrl(unsigned pin)
writel(tmp, reg);
}
+static inline void sg_set_iectrl_range(unsigned min, unsigned max)
+{
+ int i;
+
+ for (i = min; i <= max; i++)
+ sg_set_iectrl(i);
+}
+
#endif /* __ASSEMBLY__ */
#endif /* ARCH_SG_REGS_H */